package cn.zwx.order.clients;

import cn.zwx.base.constant.ResponseMsg;
import cn.zwx.order.resp.CreateOrderResp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @description: 订单系统Api
 * @projectName:rocket-mq-example
 * @see:cn.zwx.order.clients
 * @author:zhangwenxue
 * @createTime:2020/10/15 10:22
 * @version:1.0
 */
@FeignClient(name = "order-service")
public interface OrderClient {

    /**
     * @description 创建订单
     * @param resp 请求参数
     * @return cn.zwx.base.constant.ResponseMsg<cn.zwx.order.resp.CreateOrderResp>
     * @author zhangwenxue
     * @createTime 2020/10/15 10:29
     **/
    @RequestMapping(value = "/order/v1/create",method = RequestMethod.POST)
    ResponseMsg<CreateOrderResp> createOrder(@RequestBody CreateOrderResp resp);
}
